package com.question_barrier.repository;

import com.question_barrier.entity.BarrierState;
import org.springframework.data.jpa.repository.JpaRepository;

public interface BarrierStateRepository extends JpaRepository<BarrierState,Long> {
    BarrierState findByOpenIdAndGradeAndSubject(String openId, String grade,String subject);

    boolean existsByOpenIdAndGradeAndSubject(String openId,String grade,String subject);

    boolean existsByOpenId(String openId);
}
